package io.kiki.sba.registry.remoting.netty;

import io.kiki.sba.registry.api.Channel;

import javax.ws.rs.client.WebTarget;
import java.net.InetSocketAddress;

/**
 * @author xuanbei
 * @since 2019/3/26
 */
public class MockChannel implements Channel {
    @Override
    public InetSocketAddress getRemoteAddress() {
        return null;
    }

    @Override
    public InetSocketAddress getLocalAddress() {
        return null;
    }

    @Override
    public boolean isConnected() {
        return false;
    }

    @Override
    public Object getAttribute(String key) {
        return null;
    }

    @Override
    public void setAttribute(String key, Object value) {
    }

    @Override
    public Object getConnAttribute(String key) {
        return null;
    }

    @Override
    public void setChannelAttribute(String key, Object value) {
    }

    @Override
    public WebTarget getWebTarget() {
        return null;
    }

    @Override
    public void close() {
    }
}
